// javamaps
// Copyright (c) 2010 Lup Gratian
package Rendering.Info;
import Core.*;
import Rendering.*;

public final class NodeInfo implements IObjectInfo {
    private Node node_;
    private IRenderer parent_;
    private Coordinates coordinates_;
    private Point position_;

    /*
     * Constructori.
     */
    public NodeInfo(Node node, IRenderer parent) {
        node_ = node;
        parent_ = parent;
    }

    public NodeInfo(Node node, IRenderer parent, Point position, Coordinates coord) {
        this(node, parent);
        position_ = position;
        coordinates_ = coord;
    }

    /*
     * Metode publice.
     */
    public InfoType Type() { return InfoType.Node; }
    public IRenderer Parent() { return parent_; }
    public Node Node() { return node_; }

    public Point Position() { return position_; }
    public void SetPosition(Point value) { position_ = value; }

    public Coordinates Coordinates() { return coordinates_; }
    public void SetPosition(Coordinates value) { coordinates_ = value; }
}